﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example29
{
    class Crectangle
    {
        int width, height;
        public Crectangle(int a, int b)
        {
            width = a;
            height = b;
        }
        public int area()
        {
            return (width * height);
        }
        static void Main(string[] args)
        {
            Crectangle recta = new Crectangle(3, 4);
            Crectangle rectb = new Crectangle(5, 6);
            Console.WriteLine("recta:" + recta.area());
            Console.WriteLine("rectb:" + rectb.area());
        }
    }
}
